#ifndef __BSP_LASER__H__
#define __BSP_LASER__H__

#include "config.h"

/* lser devi data -> update(50Hz)*/
typedef struct 
{
    int         fd; //串口文件描述符
    uint8_t     target_count;           //目标个数
    uint16_t    first_distance;         //首目标
    uint16_t    end_distance;           //末目标
    uint8_t     light_emission_count;   //发射激光次数
    uint8_t     measure_status;         //状态
}laser_data_t;


#ifdef __cplusplus
extern "C" {
#endif
//show data
void Laser_show(laser_data_t *data);

//reply && update data
// void Laser_ReplyUp(unsigned char *response, size_t response_len, Update_t *data);

#ifdef __cplusplus
}
#endif

#endif